/*
 * Copyright (C) 2017-2021
 * All rights reserved, Designed By
 * Copyright authorization contact 18814114118
 */
package com.shop.cereshop.agent.dao.order;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.cereshop.agent.page.order.AgentOrderVO;
import com.shop.cereshop.commons.domain.order.CereAgentOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * 代理商订单DAO
 */
@Mapper
public interface AgentOrderDAO extends BaseMapper<CereAgentOrder> {

  /**
   * 查询特定类型的订单
   *
   * @param agentUserId 用户id
   * @param orderType   订单类型（1-常规，2-代金券，3-套餐）
   * @param state       订单状态
   * @return 订单列表
   */
  List<AgentOrderVO> queryOrderListByType(@Param("agentUserId") Long agentUserId, @Param("orderType") Integer orderType,
      @Param("state") Integer state);

}
